from ProcessCsvLog import process_csv_log
from SwapToExcel import swap_to_excel

# 障碍物pdc输出保存路径
input_path = r"D:\Project\ProcessPDC\process-pdc\Save_OD.csv"

#存放模板excel路径
Excel_path = r"D:\Project\ProcessPDC\process-pdc\template\DC1E_shuini.xlsx"
#输出路径
output_path = "updated_excel.xlsx"

#对pdc输出数据做处理,返回处理后的csv的路径
csv_path = process_csv_log(input_path) 
print(f"pdc数据处理成功!")

swap_to_excel(csv_path,output_path,Excel_path)

print(f"输出成功，已保存为{output_path}!")
